import {
    GET_FOOTER_DATA,
    GET_HOME_DATA,
    GET_HOME_NEW_DATA,
    GET_CAROUSEL_LIST,
    GET_LET_LIST_DATA,
    GET_HOT_DESTINATION,
    GET_QUARTER_CONTENT,
    GET_THEM_CONTENT,
    GET_GLOBAL_PLACE,
    GET_NAV_LIST_DATA,
    GET_RANKING,
    GET_INTRODUCTION,
    GET_RANKING_NAV,
    GET_SCENIC_PRICE,
    GET_THEME_REC,
    GET_SPECIAL_PRICE,
    GET_ACC_LIST,
    GET_SPE_HOTEL,
} from './mutation-types'
export default {
    [GET_FOOTER_DATA](state, { topList, tpList, midList, bottomList, endList }) {
        state.topList = topList
        state.tpList = tpList
        state.midList = midList
        state.bottomList = bottomList
        state.endList = endList
    },
    //首页热门
    [GET_HOME_DATA](state, { homeList }) {
        state.homeList = homeList
    },

    //首页最新
    [GET_HOME_NEW_DATA](state, { homeNewList }) {
        state.homeNewList = homeNewList
    },

    //首页侧边轮播
    [GET_LET_LIST_DATA](state, { letListData }) {
        state.letListData = letListData
    },

    //首页轮播
    [GET_CAROUSEL_LIST](state, { carouselList }) {
        state.carouselList = carouselList
    },

    //目的地热门目的地
    [GET_HOT_DESTINATION](state, { hotDestinationList }) {
        state.hotDestinationList = hotDestinationList
    },

    //目的地 当季
    [GET_QUARTER_CONTENT](state, { quarterContent }) {
        state.quarterContent = quarterContent
    },
    //目的地 主题
    [GET_THEM_CONTENT](state, { themeContent }) {
        state.themeContent = themeContent
    },

    //目的地最下面的全球目的地
    [GET_GLOBAL_PLACE](state, { globalPlace }) {
        state.globalPlace = globalPlace
    },

    //旅游攻略
    [GET_NAV_LIST_DATA](state, { navDataList }) {
        state.navDataList = navDataList
    },

    //旅游攻略 左侧排行榜
    [GET_RANKING](state, { ranking }) {
        state.ranking = ranking
    },

    //旅游攻略 右侧文章
    [GET_INTRODUCTION](state, { introduction }) {
        state.introduction = introduction
    },

    //旅游攻略 左侧排行榜 导航
    [GET_RANKING_NAV](state, { rankingNav }) {
        state.rankingNav = rankingNav
    },

    //去旅行  热门景点 价格
    [GET_SCENIC_PRICE](state, { scenicPriceList }) {
        state.scenicPriceList = scenicPriceList
    },

    //去旅行 主题推荐 景点
    [GET_THEME_REC](state, { themeRecList }) {
        state.themeRecList = themeRecList
    },

    //机票火车票  下面特价票列表
    [GET_SPECIAL_PRICE](state, { specialPriceList }) {
        state.specialPriceList = specialPriceList
    },

    //订酒店页面 主题住宿
    [GET_ACC_LIST](state, { accList }) {
        state.accList = accList
    },

    //订酒店页面 特价酒店
    [GET_SPE_HOTEL](state, { speHotel }) {
        state.speHotel = speHotel
    },
}